Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating a DSL for ahnlich #117

Merged
merged 10 commits into from
Sep 27, 2024
Merged

Creating a DSL for ahnlich #117

merged 10 commits into from
Sep 27, 2024

Conversation

deven96
Copy link
Owner

@deven96 deven96 commented Sep 25, 2024

In the quest for #18, we make use of pest to be able to reuse within CLI and probably in the future for languages that we cannot create query and response bindings for. The basic concepts would look something like

Welcome to Ahnlich DB CLI
>> LISTCLIENTS; INFOSERVER

Client( ....)
Server(...)

>> PING

Pong

This first PR only creates the DSL for the db, ai should be easy to do as the hard parts parsing MetadataValue, PredicateCondition, StoreKey, e.t.c would have been done

Copy link

github-actions bot commented Sep 25, 2024

Test Results

124 tests   124 ✅  1m 26s ⏱️
  8 suites    0 💤
  2 files      0 ❌

Results for commit 52fbb06.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Sep 25, 2024

Benchmark Results

group                                                        main                                   pr
-----                                                        ----                                   --
store_batch_insertion_without_predicates/size_100            1.01    832.0±5.68µs        ? ?/sec    1.00    820.2±1.51µs        ? ?/sec
store_batch_insertion_without_predicates/size_1000           1.01      9.0±0.07ms        ? ?/sec    1.00      8.9±0.04ms        ? ?/sec
store_batch_insertion_without_predicates/size_10000          1.00     84.0±3.72ms        ? ?/sec    1.10     92.0±0.23ms        ? ?/sec
store_batch_insertion_without_predicates/size_100000         1.01    956.9±7.65ms        ? ?/sec    1.00    943.5±5.02ms        ? ?/sec
store_retrieval_no_condition/size_100                        1.05      2.7±0.05ms        ? ?/sec    1.00      2.6±0.03ms        ? ?/sec
store_retrieval_no_condition/size_1000                       1.04     19.5±0.15ms        ? ?/sec    1.00     18.7±0.14ms        ? ?/sec
store_retrieval_no_condition/size_10000                      1.04    192.4±2.38ms        ? ?/sec    1.00    185.0±1.45ms        ? ?/sec
store_retrieval_no_condition/size_100000                     1.04   1924.3±9.88ms        ? ?/sec    1.00  1858.9±15.60ms        ? ?/sec
store_retrieval_non_linear_kdtree/size_100                   1.04      2.8±0.01ms        ? ?/sec    1.00      2.7±0.01ms        ? ?/sec
store_retrieval_non_linear_kdtree/size_1000                  1.03     21.0±0.07ms        ? ?/sec    1.00     20.4±0.27ms        ? ?/sec
store_retrieval_non_linear_kdtree/size_10000                 1.03    210.3±1.15ms        ? ?/sec    1.00    203.7±1.75ms        ? ?/sec
store_retrieval_non_linear_kdtree/size_100000                1.03       2.1±0.01s        ? ?/sec    1.00       2.0±0.02s        ? ?/sec
store_sequential_insertion_without_predicates/size_100       1.05  1849.2±18.20µs        ? ?/sec    1.00   1767.6±6.10µs        ? ?/sec
store_sequential_insertion_without_predicates/size_1000      1.08     19.2±0.14ms        ? ?/sec    1.00     17.9±0.11ms        ? ?/sec
store_sequential_insertion_without_predicates/size_10000     1.02    177.4±2.70ms        ? ?/sec    1.00    174.7±0.87ms        ? ?/sec
store_sequential_insertion_without_predicates/size_100000    1.08  1815.0±62.06ms        ? ?/sec    1.00  1673.8±15.10ms        ? ?/sec

@deven96 deven96 force-pushed the diretnan/dsl branch 2 times, most recently from 9335829 to 1dd2bab Compare September 25, 2024 22:08
@deven96 deven96 marked this pull request as ready for review September 26, 2024 23:36
@deven96 deven96 merged commit caecb1f into main Sep 27, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants